﻿using System;
using System.Collections;
using System.Data.OleDb;
using QLHS2010_BUS_WS.QLHS2010_DAL_WebService;


namespace QLHS2010
{
    public class HocSinhCTL
    {
        private HocSinhDTO info = new HocSinhDTO();
        private QLHS2010_DAL_WebServiceSoapClient ws = new QLHS2010_DAL_WebServiceSoapClient();

        public HocSinhDTO HocSinh
        {
            get
            {
                return info;
            }
            set
            {
                info = value;
            }
        }

        public void insert()
        {
            ws.insertHocSinh(info);
        }

        public void delete()
        {
            ws.deleteHocSinh(info.MaHS);
        }

        public void update()
        {
            ws.updateHocSinh(info);
        }

        public HocSinhDTO[] getDsHocSinh()
        {
            return ws.getDsHocSinh();
        }
    }
}
